<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
<div id="tips" style="font-size:25px;text-align: center;line-height: 50px;"></div>
<div id="top-bar-guidance" style="font-size:15px;color:#fff;height:95%;line-height:0.25;padding-left:20px;padding-top:15px;background:url(https://pic.rmb.bdstatic.com/bjh/user/cb63edac77c16078c5a30bf157b20c88.png) center top/contain no-repeat;"></div>


<script>
    var url = document.location.toString();
    var urlParmStr = url.slice(url.indexOf('=')+1);
    var ua = navigator.userAgent.toLowerCase();
    var isWeixin = ua.indexOf('micromessenger') != -1;
    var isAndroid = ua.indexOf('android') != -1;
    var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
	function J_get(name, url)
{
	url  = url?url:self.window.document.location.href;
	var start	= url.indexOf(name + '=');
	if (start == -1) return '';
	var len = start + name.length + 1;
	var end = url.indexOf('&',len);
  	if (end == -1) end = url.length;
  	return unescape(url.substring(len,end));
}
	var id = J_get('id');
 
    // 判断是不是在微信客户端打开
    if(isWeixin) {  
         document.getElementById("top-bar-guidance").innerHTML= '<img src="https://pic.rmb.bdstatic.com/bjh/user/97fbaae6fbc83a4a5beb2ea317fe7bb3.png" style="width:50px;height:50px;vertical-align:middle;margin:0 .1em" />'
		} else if (id=='') { 
        // 不是微信客户端，直接可以访问链接
          document.getElementById("tips").innerHTML= '请在本站加上跳转参数?id=需要跳转网站'
    } else { 
        // 不是微信客户端，直接可以访问链接
        location.href=urlParmStr;
    }
</script>